<?php
/*
 * Effettuo una FQL QUERY sulla tabella developer
 */
$facebook = MyFacebook::getInstance();
$uid = $facebook->getUser();
echo "<h1>Il mio uid: $uid</h1>";
$arrayCall = array(
"method" => "fql.query",
"query" => "SELECT developer_id, application_id FROM developer WHERE developer_id =".$uid
);
try {
  $query = $facebook->api($arrayCall);
  if ($query) {
    echo "<code>";
    echo "<pre>".print_r($query, true)."</pre>";
    echo "</code>";
  } else {
    echo "<p>Query non eseguita</p>";
  }
} catch (FacebookApiException $e) {
  echo "ERRORE: ".$e;
}
?>
<p>Documentazione Tabelle utilizzate:
<ul>
<li><a target="_blank" href="http://developers.facebook.com/docs/reference/fql/developer">Relazione Applicazioni/Utenti (Sviluppatori)</a></li>
</ul>
</p>